/*
 * FileName：SysRole.java 
 * <p>
 * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (1154808491@qq.com)</a>.
 * <p>
 * Licensed under the GNU General Public License, Version 3 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.gnu.org/licenses/gpl-3.0.html
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * 
 */
package com.smart.primary.sys.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.smart.primary.common.page.Page;
import lombok.Data;
import org.springframework.data.annotation.Transient;

import java.io.Serializable;
import java.util.Date;

/**
 * 角色信息表 Entity层
 *
 * @author hermit
 * @date 2018-02-23 11:02:18
 */
@Data
public class Role extends Page implements Serializable {
    
    /**
     * 角色id
     */
    private String roleId;
    
    /**
     * 角色名称
     */
    private String roleName;
    
    /**
     * 角色状态：0禁用 1启用
     */
    private Integer roleState;
    
    /**
     * 是否系统角色：0否 1是
     */
    private Integer isSystem;
    
    public String getRoleId() {
		return roleId;
	}


	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}


	public String getRoleName() {
		return roleName;
	}


	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}


	public Integer getRoleState() {
		return roleState;
	}


	public void setRoleState(Integer roleState) {
		this.roleState = roleState;
	}


	public Integer getIsSystem() {
		return isSystem;
	}


	public void setIsSystem(Integer isSystem) {
		this.isSystem = isSystem;
	}


	public String getRemark() {
		return remark;
	}


	public void setRemark(String remark) {
		this.remark = remark;
	}


	public String getCreateUserId() {
		return createUserId;
	}


	public void setCreateUserId(String createUserId) {
		this.createUserId = createUserId;
	}


	public Date getCreateTime() {
		return createTime;
	}


	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}


	public String getUpdateUserId() {
		return updateUserId;
	}


	public void setUpdateUserId(String updateUserId) {
		this.updateUserId = updateUserId;
	}


	public Date getUpdateTime() {
		return updateTime;
	}


	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}


	public String getRoleStateName() {
		return roleStateName;
	}


	public void setRoleStateName(String roleStateName) {
		this.roleStateName = roleStateName;
	}


	public Boolean getChecked() {
		return checked;
	}


	public void setChecked(Boolean checked) {
		this.checked = checked;
	}


	public String getIsSystemName() {
		return isSystemName;
	}


	public void setIsSystemName(String isSystemName) {
		this.isSystemName = isSystemName;
	}


	/**
     * 备注
     */
    private String remark;
    
    /**
     * 创建人
     */
    private String createUserId;
    
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    
    /**
     * 修改人
     */
    private String updateUserId;
    
    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
    
    /**
     * 角色状态：0禁用 1启用
     */
    @Transient
    private String roleStateName;
    
    private Boolean checked = false;


    /**
     * 是否系统角色：0否 1是
     */
    private String isSystemName;


}
